import request from '@/utils/request'

export function getList(data) {
  return request({
    url: '/activityexpenseslist',
    method: 'post',
    data,
  })
}

export function doAdd(data) {
  return request({
    url: '/activityexpensesadd',
    method: 'post',
    data,
  })
}

export function doEdit(data) {
  return request({
    url: '/activityexpensesedit',
    method: 'post',
    data,
  })
}

export function doDelete(data) {
  return request({
    url: '/activityexpensesdelete',
    method: 'post',
    data,
  })
}

// 获取活动明细图片
export function getExpenseChecks(data) {
  return request({
    url: '/activityexpensescheckimg',
    method: 'post',
    data,
  })
}

// 上传活动明细图片
export function uploadExpenseChecks(data) {
  return request({
    url: '/activityexpensesupcheckimg',
    method: 'post',
    data,
  })
}

export function updateExcel(data, id) {
  return request({
    url: `/activityexpensesimport?activity_id=${id}`,
    method: 'post',
    data
  })
}

// 上活动费用添加
export function getActivityexpensesadd(data) {
  return request({
    url: `/activityexpensesadd`,
    method: 'post',
    data
  })
}
